package model

import "gorm.io/gorm"

// 商品表
type Goods struct {
	gorm.Model
	Name  string  `gorm:"column:name;type:varchar(50);not null;comment:商品名称"`
	Desc  string  `gorm:"column:desc;type:varchar(100);not null;comment:商品简介"`
	Price float64 `gorm:"column:price;type:decimal(10,2);not null;comment:商品价格"`
	Num   int64   `gorm:"column:num;type:int(11);not null;comment:商品销量"`
	Img   string  `gorm:"column:img;type:varchar(255);not null;comment:商品图片"`
}
